<template>
  
</template>

<script>
export default {
    name:'axios',
    data(){
        return{
            result:''
        }
    },
    methods:{
      getJokes(){   //从网络中获取一则笑话
            this.$axios.get("http://localhost:8081/demo8_war_exploded/adv?method=show")
            .then((res)=>{
                console.log(res)
            })
            .catch((e)=>{console.log(e)})
         },   
},
 mounted(){
            this.getJokes();
        }
}
</script>

<style>

</style>